import { Suspense, lazy } from 'react'
import {
  UserOutlined,
} from '@ant-design/icons'
import Layout from '@/pages/layout/index.jsx'
import { Spin } from 'antd'

const User = lazy(() => import('@/pages/user/index.jsx'))

export default [
  {
    path: "/user",
    element: (<Layout></Layout>),
    meta: { title: "用户管理",  icon: <UserOutlined />},
    children: [
      { index: true, element: (
        <Suspense fallback={<Spin />}><User/></Suspense>
      ) },
    ]
  },
]
